package com.mhtube;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

// 应用程序启动类
// 允许异步编程
@EnableAsync
// 设置SpringBoot默认扫描包的目录
@SpringBootApplication(scanBasePackages = {"com.mhtube"})
// 允许事务处理
@EnableTransactionManagement
// Mapper扫描包
@MapperScan(basePackages = {"com.mhtube.mappers"})
@EnableScheduling

public class MHTubeApplication {
    public static void main(String[] args) {
        SpringApplication.run(MHTubeApplication.class, args);
    }
}
